package com.njtoyo.taxi.admin.rest.wrapper.local_service.order;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.master.enums.local_service.LifeMerchantMemberOrderState;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

@Data
public class OrderPageWrapper extends Page<OrderPageWrapper> {
    public OrderPageWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty(value = "会员姓名")
    private String memberName;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "商品流水号")
    private String number;

    @ApiModelProperty(value = "订单状态 0:init[初始化],1:operated[支付中],2:done[已支付],3:cancel[已取消]")
    private LifeMerchantMemberOrderState state;

}
